package com.zhuss.black.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.black.black.DetailBlackTopicVo;
import com.zhuss.black.db.dao.gen.BlackTopicMapper;
import com.zhuss.black.db.entity.BlackTopic;

@Mapper
public interface BlackTopicDao extends BlackTopicMapper {
	
	void create(BlackTopic record);
	
	int delete(BlackTopic record);
	
	int deleteByParent(BlackTopic record);
	
	void deleteBatch(@Param("blackTopicIdList") List<Long> blackTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	void deleteByParentBatch(@Param("blackTopicIdList") List<Long> blackTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	List<BlackTopic> listAll(@Param("area") Integer area, @Param("blackId") Long blackId);
	
	DetailBlackTopicVo detail(@Param("blackTopicId") Long blackTopicId);
	
	List<Long> listSon(@Param("blackTopicIdList") List<Long> blackTopicIdList);

	List<DetailBlackTopicVo> listTopic(@Param("blackId") Long blackId, @Param("parent") Long parent);
    
}